Send HTTP 500 when no SQL; Crashing when reloading site after HTTP 500