Game freezes when leaving server or Alt F4

Just wondering if this is just me or anyone else have the same. When I leave a server the game freezes the same happens if I press Alt F4, it does not close the game. I have to manually close it in task manager.

Have not tried to do anything to fix it as it is just a minor thing.

I have a similar problem but mine is even worse. Sometimes when I try to alt tab out the game will minimize but my desktop will be frozen and task manager will lock up as well. I have to actually power the computer off then on when this happens. It only happens with rust and it only happens like 1 in every 5 times I alt tab.