Fail safe wrapping of SqlExceptions