Client now closes when it recieves Ctrl+Q. Also this is the first real
use of the KeyManager.