Closes this resource and frees the resources it uses.
After this method has been called this resource may not be used any more, even if returned Future has not completed yet.
Future<void> close();