Make sure to shutdown cluster when controller goes away.
Merge pull request #30 from EasonLiao/shutdown-on-master-del

Make sure to shutdown cluster when controller goes away.