Close & reopen stuck at db.transaction, executeSql

Problem:
My android app, first run is fine, but if I close (using back button) then reopen the app, it got stuck at db.transaction() and tx.executeSql().

Solution:
I have to modify SQLitePlugin.java's onDestroy, adding code to clear rmap like this:

    public void onDestroy() {
        rmap.clear();

        while (!dbmap.isEmpty()) {
        ..
    }

Tested on:
SQLite plugin installed on 2014-Sep-01 using cordova CLI.
Android 4.1.1 emulator (from Genymotion), tested using sqlite and sqlcipher.
Android 4.2.1 real device, using sqlcipher.