Fixed logout procedure.