Fix peer close test.

Change-Id: Iced7e0ee60a651fe3524a6ed72beb8b0d5d2d752