diff --git a/src/main.cpp b/src/main.cpp
index 3cf6728e47681d8c36d099467548dce719d8ed8b..f2ff88c0c8b1d131d382e794d55dd870e78469b9 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1462,6 +1462,7 @@ int main(int argc, char *argv[])
 	{
 		dstream<<"Running speed tests"<<std::endl;
 		SpeedTests();
+		device->drop();
 		return 0;
 	}