restart queue when error occurs