Avoiding ship loss