Wait for OSGi framework to stop before trying to delete its cache.
Merge pull request #4 from neykov/osgi

Wait for OSGi framework to stop before trying to delete its cache.