Added catch all in main loop to ensure that application never dies
Compiling, combining and minifying have been split into separate functions and bundle is correctly cleaned and skipped if something fails