Fix peer close test.

Change-Id: Iccb7b7c343e9a68720e2f7d5f1b274ae25f17bde