Catch NoClassDefFoundError fixes #24