This would fail since process is terminated (response does not make it back).  I would suppress output or error and echo that the process is terminated instead.