Clear old maps to fix remory leak

If we made multiple request using websocket, the old maps are stacked creating a memory overflow.