Make sure SSL error queue is cleared before using SSL functions and checking for errors (see http://stackoverflow.com/questions/18179128 and https://www.arangodb.com/2014/07/08)