Wrapping calls that use Dropbox resources so that resources are cleaned up.