Remove stacktrace in case of expected exception