I strongly suspect that the context is ending when it expires and that SASL needs to do a better job of catching this error and reporting a connection problem.