Check OSError while deleting empty directories and notify user