Prevented suppression of error message, fixed small memory leak
Prevented suppression of error message, fixed small memory leak

lento/cortex,hradec/cortex,davidsminor/cortex,lento/cortex,danieldresser/cortex,appleseedhq/cortex,goddardl/cortex,lento/cortex,goddardl/cortex,davidsminor/cortex,goddardl/cortex,davidsminor/cortex,hradec/cortex,danieldresser/cortex,danieldresser/cortex,davidsminor/cortex,danieldresser/cortex,hradec/cortex,appleseedhq/cortex,appleseedhq/cortex