avoid sending close when you know it can't be sent