Some exception handlings