Cleanup and remove renderError.