restore codebase to original copy before shutting down