Merge "if db close() fails due to un-closed sql statements, print useful msg"