Added temporary fix for killing locked databases