Gracefully leave cluster

Triggers a graceful leave and shutdown of the agent.