Added start io_thread if is stopped and stop and start if it is connecting