fix: dispose socket. Closes #1