added double newline output on exits