back to FMP 12 there was a nasty error preventing us from closing windows or quit the FileMaker application.
From version to version that error became more rare.
Now I've got it with FMP 15 ETS.
It happened after using the "Add Account" scriptstep.
(the account was added as expected)