Rolling back local database if cleanup fails (fixes test)