Made try/catch inside callback instead of throws exception