MyView: Set shutdown hook.