Call process.exit when callback is called

This ensures that apm exits when the command is done and that any
spawned processes don't keep the main apm process active.

Refs #138