now server has small handler which sends something to the clients when server is killed
signal handlers now work somehow. now let's clean the socket system