Do not use process.exit
Fixed resolving bug
Lint
Start migrating to async