Give exiting process enough time to fill local buffers
Make sure remote stdio has completed - this might be after remote process has terminated