Add finalizer for reaper thread