Added proper try-catches to avoid server crashes caused by timing listener errors

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>