added exception catching to keep leo from dying