if udp handler socket defined -> to_i

Force socket['port'] to integer if defined.