Removing panic

Libraries should not trigger panics