Changed update_pid to true to handle JAVA erros better