added temporary workaround for AutoCloseable which will be deleted in jclouds 1.7