PTFM-13267: Exit gracefully by wrapping all dx methods in err_exit

Test Plan: existing tests and manual testing

Reviewers: psung, akislyuk

Reviewed By: psung, akislyuk

Differential Revision: https://phabricator.dnanexus.com/D170