Any way to detect if disconnect is due to server issues?

Hello,

I'd like to know if there is a way to detect if disconnection happened due to issue on server side.
Players in my game have to spend in game money to play, and I'd like to be able to refund them if they were disconnected due to server issue.

Best regards

Comments