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

ok, will update the logic