Disconnect database and session destroy after callback.