Added call to communicate() after terminating server