Added platform cleanup implemenation