Fix function handle(), remove exit().