squash: use a temp dir for /media
Trap some signals and do a clean exit