Handle death of agent process and shutdown tunnel