Catch error in case $destroy is called twice

This error can happen when using ui-router, as ui-router will manage
your application lifecycle incorrectly. See this issue for more
information:

https://github.com/angular-ui/ui-router/issues/881