saving before reload of os