small refactoring

*moved peer-removal on unreachable host from socket to server, peer
handling should stay in server