Games won't stop, steam games won't stay started

Hi,
I’ve been having a couple problems with Lutris after I switched to Arch Linux. Whenever I start a game it works…well, aside from Steam games, those do start but Lutris doesn’t remember them as started meaning stuff like gamemode I have as an environment variable don’t work.
But once I close the game it just won’t stop, clicking on stop doesn’t help, killing all wine processes, checking htop, nothing will stop them and I am forced to close Lutris altogether. The game I experienced this issue with was Final Fantasy 14 and Shadow Warriors 2 from GoG but the issue with steam games is any game I have on steam.
When I close the game in terminal it usually states:

--terminated processes--
2019-09-14 10:38:49,646: Unable to read stat for process 17800
2019-09-14 10:38:49,646: Unable to read stat for process 17800
All children gone
Exit with returncode 0

And when I start a steam game(here as an example Celeste):

2019-09-14 10:41:31,984: Runtime disabled by system configuration
2019-09-14 10:41:32,014: Runtime disabled by system configuration
Running /usr/bin/steam steam://rungameid/504230
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
Running Steam on arch rolling 64-bit
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
STEAM_RUNTIME is enabled automatically
gamemodeauto: 
gamemodeauto: 
Pins up-to-date!
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
ERROR: ld.so: object '/usr/lib/libgamemodeauto.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
Waiting on children
Exit with returncode 0
2019-09-14 10:41:32,940: Full shutdown prevented
2019-09-14 10:41:34,036: Game still running (state: running)
2019-09-14 10:41:34,036: Stopping Celeste (steam)

Any fix to this? I’ve tried reinstalling but that didn’t fix the problem.

What happens if you run the same games outside Lutris? (You can run them by hand from shell or make a shell script, adding there paths from Lutris config.)

Strangely, I have fixed it a different way I had to start the gamemode daemon first, then games stopped behaving like this.

Now, the issue with steam games not staying in “played” mode in lutris(meaning I can’t stop them with lutris, nor does gamemode apply to them) still is an issue.

You’d need both https://aur.archlinux.org/packages/gamemode/ & https://aur.archlinux.org/packages/lib32-gamemode/

Also reading one of the comments makes sense, and I quote;

systemctl --user enable gamemoded
once as current user and

systemctl --user start gamemoded
if you want to start it manually

Lutris doesn’t (can’t?) watch Steam game process; instead it watches Steam process itself. If you haven’t had Steam running before starting the game from Lutris, it won’t quit after game stops running, unless you close it yourself. If Steam was running already, the new Steam process sends “open that game” command to the old one and terminates (thus only a few moments of “game runtime” is registered by Lutris).