Clean up error checking when shutting down user credentials database