Made main method more error aware (catching also linkage errors of the
jvm).