Some clean up. Resolved a leak on ImageLayer - closed ObjectOutputStream before returning.