Pass cmd to command_timeout_error_message as argument