Delete handling with opened folders

Fixed bug when folder cannot be deleted due it was opened in explorer