Fix file removal from gamemodel remove

*Also clean repository on shutdown