Fixed a problem when the sound engine would not shut down properly, and would stay blocking the application termination on Android.