Fine-tuning the juju-epc codebase for better error-handling