Fixed: Socket not being closed.