Make sure stderr is open before starting Bottle