Rollback in case an error happens when committing to the database