Refactored run_qmp_command method to get correct qmp output with timeout control