socket and game recovery logic