Properly implemented disposable pattern.