Better error handling
Added support for deleting users and groups