Debugging a pratition install problem.
Finally fixed bug by closing database.