try..except in key retrieval, self.shutdown() on exception