catch exception and return 503