fixed external terminal keypress wait when fatal error
argv implementation