Recognize disconnect errors in the postgres adapter when SSL is used (Fixes #900)