Added new exception. Improved connection errors handling.