was the call to close() really necessary?