Minor refactoring
Refactor spec filtering and application of --dry-run
Guard against exceptions in afterAll-hooks