Implemented --failfast option

Closes #47