Fix peer close test.

Change-Id: I80dc26144015a21d50b08846bfb7d5812b83d87f