Always pop stash, even if an exception is raised during execution.
Adding tests for stash_local_changes.