Add autoNotify function
Always register the shutdown function, since it is ok to register multiple
Merge pull request #13 from bugsnag/auto_notify

Add autoNotify function