Fix mainClass.
Log and continue on invalid package.scaled.
Better error reporting.