Fix issue with Rack server running in background