Added exit after load_template, #462