Fix peer close test.

Change-Id: I1052a0ebe0e43dfe1702c2f33faf14a217d3aa41