try to catch disconnected and errors