closes down better
bash with socket redirection