Added logic to ignore already started and already stoped return codes.