apns broken pipe verification

In my production test I got disconnect from Apple server when some of my token is invalid.
Because this premature disconnection I cannot get the identifier to handle the bad token.
I added some verification to handle that.