Explicit garbage collect to fix memory problems