fix try-finally-return in functions returning void