Added on close event to platformsSetup