pass method object method equip perform applic shutdown logic method pass state quit occur param target object contain method param quit handler method handl quit set quit handler object target method quit handler set handler osx adapt handl quit target quit handler 