Allow single quote to be used in the LDAP query
Handle exceptions thrown while doing search queries