being found out , he was thrown into prison , but escaped , returned to scotland , masterminded the assembling of the clans under the guise of a hunting-party on the braes of mar in 1715-and then managed to get full credit with the english crown for putting down the resultant rising .