Add gameplay connection closing after switching between pages