Assert connection errors are raised
Better comment