the bahamas served as refuge for pirates