WINDOWS - added complete error handling for ccWindowFree