Fix freezing when logging in and out using multiple users (Issue #13)