use quit() in reopen test

there is a race case using close in which
connection is closed while waiting for response
to an open command

Change-Id: Iebac20f02a8b5782f244adc9a43916424a927d64