Servos use regular (non-PWM) pins on MEGA boards. Remove listener when pin mode set to out.