ensure we dont hang forever in process InputStream reading