Closing the game breaks the chain. Also, if you get the Trainer Counter on the Pokétch (from Oak at the pal park) you can see your current chain if you have one active and how long it is and have a ranking of your hightest chains. The thing showing your chain will disappear when it is broken.