Add a stop function to the base connection class.