added return-statement that informs about closed tcp