steps in cleanup for forcerec.c