Add a close_server method

Should be called explicitly to prevent zombie server
processes
Use stop_server in example