Clean up background processes in GnuTLS
Add test for packet loss