sorted examples dir and save on close message