also catch 500 error