Fixing message formatter use of Curl handles. Closes #316