Contacts: fix element close mismatch. Fixes #789
Contact: port getACL