Catching Wrong execption in alloc and reserve