fixed error handlers for win8 & wp8