Modify connectionDropEvent function

so the disconnect function takes a connectionWrapper instead of a connection