free a process' frames when it exits