Checking the connection or reconnecting to the management server