unregister from server upon TERM