guard against self.socket being null
guard against self.socket being null

jhiesey/bittorrent-tracker,jhiesey/bittorrent-tracker,feross/bittorrent-tracker,feross/bittorrent-tracker,LinusU/bittorrent-tracker