How to un-register/un-observe cleanly when script exits?

Internal error.

Oops! Looks like something went wrong!