need to delay class closing until after FINALIZE

otherwise, we prevent role application from doing things like adding
methods