OnProgress implementation + WSError with type management added