Exact solutions to fall of particle to singular potential: classical versus quantum cases