suppress socket closed exception when server is stopping