def METHOD_NAME(session):
    """Shutdown vm."""
    shutdown_command = params["shutdown_cmd"]
    error_context.context(
        "Shutting down VM by \"%s\"." % shutdown_command, test.log.info)
    session.sendline(shutdown_command)
    if not vm.wait_for_shutdown():
        test.fail("Failed to shutdown vm.")