fix double sigint for shutdown
fix infinite wait in proxy mode