added exception in the Monolog context when appropriate (closes #613, closes #614)