manage connection exceptions