Added window icon. Added cleanup method for windows.