Exit implementation

Should go back to last position in last map