The code from 263~285 lines should be put to `try{..}` code block.