JBTM-1879 Updated to make sure that we close the connection to the database
[JBTM-1867] new warning code for remove_committed