Bug fixed. Hung up when closing TCP.
Merge branch 'feature/bugfix'