Report the correct exception when closing the connection fails instead of the exception that happened when trying to send