Cleanup java variables