Fixing and commenting the plugin library. The problem was in the tts part of the library where it was returning from the foreground thread before completion.