Add pdb leftovers to .gitignore
Remove extra logging for empty tasks
Run post_mortem on errors if needed

To use this, add post_mortem=true in your PLUGINS conf.