Returns error code if the process fails to launch.