[mms] Correctly logout when a Horde_Exception_AuthenticationFailure is handled by the default Horde error handler.
[mms] Fix some cases where the seesion was not destroyed upon authentication errors.