diff --git a/examples/src/bin/play.rs b/examples/src/bin/play.rs
index d18a663f0a303ab7bd0c42844f5924d5107edd34..15026d55fb80dc9479de52b6167a3187dbd8303e 100644
--- a/examples/src/bin/play.rs
+++ b/examples/src/bin/play.rs
@@ -37,6 +37,11 @@ fn main_loop(uri: &str) -> Result<(), Error> {
             Err(_) => unreachable!(),
         }
     }
+
+    // Set the message bus to flushing to ensure that all pending messages are dropped and there
+    // are no further references to the play instance.
+    play.message_bus().set_flushing(true);
+
     result.map_err(|e| e.into())
 }