improve sns error handling