leave earlier if out is already done (JRuby)