added finally clause for restoring context's MutationObserver