fix 27b5d1952926a7bf7cd1f1d35305c7dde1c4a195 "Thread.critical does not exist in ruby...