adding cleanup to render method so the include path and error levels are set back to their original value