save user settings on close

Fixed user settings on close.  File would save to other directory on
closing and not be found on loading.  Settings could not be transferred
from one session ot the next.