Catch exception when printing help message