clean shutdown of some codes
Is your feature request related to a problem? Please describe. some codes, especially C++ codes need explcit call to cleanup_code before shutting down (e.g. for cleaning up MPI resources before a MPI_Finalize), this normally done through state model and stop..but this makes a shutdown with out a stop or a del instance unclean, since the del in the codeInterface will not trigger the state model (and thus no call to cleanup_code happens)
Describe the solution you'd like del instance or exiting should always work to cleanup_code if possible (ie if the code is alive)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.