Wrap with try/catch setAutoCommit() call

Wrap with try/catch setAutoCommit() method call to avoid throwing exception from finally block