Fix peer close test.

Change-Id: I10a07d578cee27d9c2244af1f9fe4c747d99292f