On minimize, clear every instances and activities, Fixes #3