Added cooldown time to api shutdown