Add a warning message when sockets are close()ed