Optimal investment and consumption with event risk