refactoring so that error page handler cache is subordinate to the lifecycle of the error page handler itself