fix xrun on shutdown