cleanup and unix socket