Should throw a error instead of calling exit.