add proper quit support
add support for server ping