Adding on to what's already been said above.
Sometimes there can be a lot of users all cluttered in a spot on the map. If that's the case, you internet might not be able to handle the lag, causing your game to crash every now and then. Following the second bullet point in Valhayes's can lessen the load on your computer.