Feature duplication in command_line and configuration

attempt to close #1290
Can you add this back please? It's an integration test to help us catch issues where other gems have `at_exit` hooks setting exit codes.