planetfs_main.cpp: ensure much exception safety