Fixes resource leaks

Client, Account and Stock classes all contained resource leaks. These
leaks have been resolved.