private void safetyExit ( Process process ) throws IOException { process . getErrorStream ( ) . close ( ) ; process . getInputStream ( ) . close ( ) ; process . getOutputStream ( ) . close ( ) ; }
Has to be done in the end manually . Close all streams manually .