Fix error persisting when delete context option is passed

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.