Is it possible to run a cleanup code after a jldoctest block has been evaluated?

Documenter allows the inclusion of setup codes for a jldoctest section. Is there something analogous that may be run once a block has finished running, sort of a clean-up code?

For example, I’m looking for something like addprocs(2) in the setup and rmprocs(workers()) in the clean-up.