Fix completion for renamed magic functions.
Prevent new connection when there's an active txn.