Spirit of cricket needs to be protected, says outgoing ICC boss