Added better error reporting for rejected matches. Fixed a race condition in duplicate match detection