Dispose

Dispose methods to prevent memory leaks.