Added warning on fail

Fixes #37