Record commands on crash
Merge pull request #886 from ambarish-prakash/N2CConnections

Record commands on crash