Moved .shutdown into it's own class.