Fixed application exit.