Add support for a chained main class, for running a second app in the same JVM