Problems with plugins when using cordova android 5.0.0

I had to upgrade to cordova android 5.0.0 so that I can use version 2 of the cordova-plugin-contacts because version 1 was no longer working on iOS 9. Now I have the problem that every time that I get a result back from any plugin that opens a new intent (contacts, camera, etc.) a state change is trigger throwing me out of my current state and returning me to the default. I guess I could try to catch the stateChangeStart event in those situations and cancel it but I was wandering if anyone has seen this problem and figured a cleaner solution.