JBIDE-16916: Invalid thread access when running clear command