Fix error on shutdown in config.ru