possible workaround for linux OnTerminate TAsyncProcess bug