Closes any opened file handles.
If the Resource is already closed then invoking this method has no effect.
@override Future<void> close() async { if (_resource == null) { await _resource?.close(); } }