Improve waiting when deleting projects

Check parent of delete shell