It's possible that the rear derailleur is maladjusted or possibly bent and the chains are hanging up on the rear cogs or chains, causing them to eventually seperate. However the fact that the first one broke at the master link suggests that it was improperly installed.