He had decided to kill his wife and kids