allow restart in `%run -d`

closes #3043
Merge pull request #4514 from minrk/pdbrestart

allow restart in `%run -d`