In CLI, handling exception on key listener instantation.