Fix #1024: cleanup files if shard creation fails
Merge pull request #1024 from influxdb/fix-1024

Hitting open files limit causes influxdb to create shards in loop