I have found that if the game crashes, freezes, or otherwise ends abruptly, you will lose everything, including unlocks. If you leave the game from the menu, you keep all your unlocks but you do not get match bonuses.
This is probably due to the game only transmitting statistics to the hub once the game has ended or you formally leave the game from the menu.