Fixed small bug and added shutdown to QuorumZab.

Used to see if it can pass travis.