Moved destructor to protected