def METHOD_NAME(self):
    try :
        prepare_for_shutdown_cmd = prepareForShutdown.prepareForShutdownCmd()
        prepare_for_shutdown_cmd.managementserverid = 1
        self.apiclient.prepareForShutdown(prepare_for_shutdown_cmd)
        try :
            self.run_async_cmd()
        except Exception as e:
            self.debug("Prepare for shutdown check successful, API failure: %s" % e)
    finally :
        cancel_shutdown_cmd = cancelShutdown.cancelShutdownCmd()
        cancel_shutdown_cmd.managementserverid = 1
        response = self.apiclient.cancelShutdown(cancel_shutdown_cmd)
        self.assertEqual(
            response.shutdowntriggered,
            False,
            "Failed to cancel shutdown"
        )
        ## Just to be sure, run another async command
        project = self.run_async_cmd()
        self.cleanup.append(project)