Fix peer close test.

Change-Id: I2fbb6c2838ecd5a7e4bbefcf2e4304c833e92b98