Clear mappings when exit