Removed logger declaration from log module.
Replaced check_call by check_output to retrieve command output on error.
Reviewed exception class.
Added exception management in main method.