Fixed writing nonexistant socket on connection close