Add exit statements