close method should not throw exception