add file events, clean up sender termination