Fixes dropped messages that occur when attempting to send to a closed connection