Execute resetAttributes right after quitting
Prevent directory traversal attack