[JBIDE-17881] make sure progress is correctly updated and closed