Ensure ProcessStdOutInput is always finalized
When canceling command the input is deleted. In that case we should also finalize to prevent left open QIODevices.