Fixed timeouts in case of disconnects.