Implemented try catch block for Library Loading