Fixed networking on main thread when logging a user out