Server closes gracefully on INT and TERM