add "safe" option

add "safe" option to prevent generated files from flowing into subsequent streams when "type error" is occured.