Minor tweaks

Prevents it from exiting on a duplicate resource, prints useful error
message instead.