Bug fix on folder creation + remove folder if error raised at creation. Fix #225