fix issue 1482 where Maven will report build successful if forked JVM
exit with error.