fixed msssql error catching