Update used module list.
Fix rapidly clicked close button throws exception