Fix peer close test.

Change-Id: I6fc4b4579ca2dea33eba4180a281c879771e79f7