Protect the transaction in sync-db with exception handler