Added catch-all exception for stats collection.