Fix/destroying all the projects

https://www.openproject.org/work_packages/3054.