add some basic error handling upon deletion