Save messenger data on exit