add "safe" option to prevent generated files from flowing into subsequent streams when "type error" is occured.
Merge pull request #25 from youpy/safe-option

add "safe" option