segfault fix (maps weren't removed from the MapClient's maplist when closed)