Moved 'Application failed' logging