Added in a full disconnect function to make disconnection simpler.