sub on_disconnect { sleep 30; # Waits for 30 seconds do_runlog(4,""); # Logs that it lost the connection start_it(); # Start over }