simplified server restarting to debug
Revert popen for now