Handle user interrupt in sqlite