add server stop delay
fix signal usage