Do not call exit from functions, pardon.