Remove some variables that are no longer used as of r271413.

Reported by:	Coverity
CID:		1238924
X-MFC-With:	r271413
Remove an incorrect close(2) call that was added in r271413.

Reported by:	Coverity
CID:		1238923
X-MFC-With:	r271413