Fix encoding bug
Dispose of the form after connection