Fix coverity defects: Resource leak (RESOURCE_LEAK)
NOTE: g_creat() return a file descriptor... that must be closed.
Now change the behavior to first start pragha with basic preferences (Setted as Gobject  properties).. Then g_file_set_contents can create the file when closing pragha.