Clean error messages and project directory