Fix to work

- Raise error with stdout/err when phantomjs failed
- Create capture record