Close off database transactions promptly