Close edit popup on stop (osx)