Closed mappings and quasimetrics