You forgot to close the vault at map end, gonna makes problems.
Also, you save load money lot of time when it is useless, you should only save when game is restarting and when player is disconnecting, and only load when startmoney os proceeded (for that last reason i gave you the startmoney link).