Save location on close.