terminate each file stnza correctly