Removed shutdown() method, simply use leave() instead.
Cleaned up the code a bit.