This happened to me before. the genius bar explained to me just to do a restart and everything shoud be fine afterwards. he recommended to do a soft restart every once a week, but im not really sure why.
Happened to me the other day. I was using Safari, it closed, and took me back to the home screen of my iPad. So far, I haven't experienced the issue again.