Prevent disposed exceptions from HttpStub when port is in use.