process: Add exitCode property

This allows one to set a specific status code, while still letting the process exit gracefully once all async operations are completed.