Mike,
The Mendix 5.4.1 release requires additional security permission to run in the cloud. Unfortunately these additional security permission weren't added to the cloud policy file at the same time as 5.4.1 was released.
All cloud servers should now have this permission in their policy file and you shouldn't run into this issue again.
Please note that if you ever get an AccessControlException, or ClassNotFoundError, or anything similar to this, your application will become unstable and will not be able to run as expected.
The app administrator should inspect the cause of the error and restart the application after solving the problem.
As Ronald states, the platform waits for all actions to succesfully finish before shutting down. Since all actions/microflows are in an inconsistent state it will always result in a time-out asking you to force the application to shutdown. This is the expected behavior.
Mike,
It may not be related but I am reacting because of the symptoms you describe. At the moment we have two customer environments that have the same symptons (one more often then the other). Out of curiousity could you check your monitor / running now the next time to see if you have long running microflows?
What we see is that a microflow does not stop. It seems to hang on a commit action. The commit just never finishes (it is always the same microflow causing this, but different ones in each environment). Because of this other microflows will also not end with the result that the environment becomes inresponsive and eating up resources. Killing the request does not help. I do not know what this feature does, but we never have seen any result of killing the action. After a refresh the microflow is there again.
We already filed a support ticket for this problem but have the same problem as you. Sample project is of no use because it will happen only in a production environment and never in the test environments of these projects (both projects are on Mx 4.7.2.)
And again the problem might not be related at all but I give a response because of the exact same symptoms.
Regards,
Ronald