refactor: apns.Error and packaging