Bind tilde to spawn terminal.
It wasn't already? What am I, a noob? A filthy casual?
Start swank a little smarter.
Recurse upward from 4005 until an open port is found.