added error handling - no stacktraces anymore - but the error page cant be shown for some reason