implemented server graceful shutdown