Making sure that failing SQL connections fail with failures (not error code 0)