add SIGTERM handling
handle proper 'shutdown'
notify state changes to peer instantly
notify 'shutdown' state to peer