Improved logging and notification on crash