add calling of session.Dispose(), commandManager.Dispose()

methods into FormClosed handler for memory leak prevent

"When form is closing, the dependencies
 should be disposed to avoid memory leaks." #610