Fix peer close test.

Change-Id: I36cae8ebdc242550d19d74201757dbc29cfe2760