Fixing unicorn restart issues