remove a debugger

because of asynchrony it's usually too late to break in post_error anyway
fix various cases where trying to set visiblity before fully loaded

fixes #534 harmless fork error again
fixes #558 import external notebooks error
fixes #556 import notebook from file error