Prints when sockets gets closed