cleaning up when invalid project is detected