option for setting metric socket file mode & clean up metric socket on exit

I think my original intention was to make it optional and just have it disabled if no port is specified, but obviously it's not working. Thoughts?