Fix login issues due to missing destroy() and disconnect() calls