Marking as Closeable
If we use bash syntax, we should demand bash.

Don't assume /bin/sh is bash.
allow the socket file to be customized
let's not drop the nested cause
oops
allow user script to override anything