Fix minor bug with error object not being reset

Fixing a minor bug where the error object for creating the PSC will persist through and throw an exception even if the delete database file option is passed.