Manual port of fixes for radar and disconect crashes

Signed-off-by: Harry Young <hendrik.gerritzen@googlemail.com>