prevent crash if options are not set, stop processing files if stop command has been issued