Added default deleter to createShared()