Better connection/disconnection logging.