Added fatal error logging