Fixes some disconnect stuff.