get boolean environment value
1, more environment config
2, fix bug of service exit
gracefully exit program
fix a bug of closing server