Moved message before stacktrace is printed