Platform context cleanup