Govt to ensure writ of state at all costs