destruction on window close
flesh out protocol