altered programs to send shutdown signal only when entering OFF_STATE