Properly capture and terminate the phantom process.