Kill the java processes when the build fails