Copy messages array to prevent concurrent modification exception
Merge pull request #13 from detourhub/fix-enumeration-crash

Copy messages array to prevent concurrent modification exception