More informative 500 error messages have been added.