Fix package.json syntax.
Fix error handling.