Connection errors handling.