Fixed memory leak in Router

due to missing virtual destructor in abstract class