#113: Validate the argument of reset(..) before closing the internal resources