Added countdown/timeout argument for polling the command status to avoid endless loop in case the server never answers with the status.