Fix UI error handling and minor CLI options bug