Exits after processing directories