Improve magit-quit-session fn