pull the plug and wait in mqueue