Setting a configuration option to allow at_exit hooks per discussion with @steveklabnik in #862