Fix main application exit value so it doesn't report application failer
on normal termination.