Close all connections when close_fun is called