Added a catch block
Reviewed by Senthil