Added better magit quit function