Move assertion outside the async block. Assertion should be true when we're called, but may be false by the time we actually try to remove the connection.