c++ wrapper for shutdown