Improve rasterize.js

- Add onResourceTimeout to prevent process hang forever
- Output address unreachable and set exit code to 1
- Increase setTimeout from 200ms to 500ms