Explicitly terminating the process after deregistering.