Implemented error & exception handlers on cli