Refactor code to allow pluggable commands. Display command hint. Remove host upon quitting.