revert changes
throw exception as fast as possible to avoid fetching other resources