introduce ettercap wrapper function ec_sleep()
change sleep calls to new ec function ec_sleep()