Fixed classpath declaration.
Some smarter error handling in case the error handler has an error.