Added common file implementation
WINDOWS - added error handling
WINDOWS - added error handling