java-dest: eliminate message leaking

Signed-off-by: Viktor Juhász <viktor.juhasz@balabit.com>