Handle delete exception. Fixes #3