catch exception when attempting to forcibly stop a console thread