You will have to run a script to check if it is connected and then reconnect if not.