return 500 for uncaught error