Fix peer close test.

Change-Id: I7912ca7898837cbd7a2eef0e3396ad29ceee85ea