Delete project directory if project creation doesn't succeed

It is better to name this just `e` or `err` because it is not an `Exception` but `Error`.