bugfix: check for undefined exit_code
1.3.0