Rewrite to better exit.