Bug 979039 - handle errors in promises for child_process tests