Auto-unmounting on shell exit