server module on shutdown catches server.close error