When you disconnect from the server whilst in a map instance, it doesn't delete them.
When you rejoin, you spawn again in that map and not in the main world.
You then cannot leave the map, since it is not registered as an active adventure anymore.
Maybe you can add a check if after 5min there are still people in a map, and if not: delete it.