Got rid of exception error for desktop main return value.

When executing "./gradlew desktop:run", after closing the application window, gradle would stop with an exception error due to a missing or wrong return value from the java main method. This fix make that "error" go away.