Fixed bugs with close dialog functions

Fixed the ClosePlayerInventory and ClosePlayerContainer functions to
properly hide the dialog. Added intended calls to OnPlayerCloseInventory
and OnPlayerCloseContainer respectively.