changed main and batch methods to catch Throwable and exit properly, also added pass through for layoutApply params
Authored by: skyebend 2007-01-17
Parent: [r81]
Child: [r83]