Convert all exits into returns