Close edit popup when editing running TE and stopping it (osx)