Don't crash when what.cd doesn't respond

Also don't crash during several other situations, some of which should probably be handled better than this