Improved handling of asterisk connection error