Bug 11395: exit should be done after displaying the output