Temporary solution to killing the processes after handshake