kill the process when wait_server failed (fix #38)

Fix for #38