Fixed application exit