Fix peer close test.

Change-Id: I5368e7be422ddf1c23064fbea73aedf1f0c53f4d