Improved error reporting on connecton errors