he served as a special agent with the fbi for twenty years before leaving that post to become the chief of police in galveston , texas , an island community with enough crime to keep his life interesting , and enough sunshine and warm weather to keep him happy .