Add logging and some error checking for monkey crashes