more specific error handling for leveldb
Delete pending after success