Added try-catch to package init