Prevent dialog closing by catching reject call in base class.