utility function to shut down Rook server, and then relaunch apps