Fixed small bug and added shutdown to QuorumZab.