add log error with stacktrace when all messages are not in the out queue