Add foreach to list of non-returning statements