Add try/catch and return variables for functions

4 jobs for 267-provide-a-ldap-deletion-option in 4 minutes and 37 seconds (queued for 3 seconds)