Buffered Ports 

Re-issue of pull request https://github.com/planthaber/rock-webapp/pull/11 against master
I've had trouble following the logic here. Would be better to move the .delete() call into an else clause instead of just at the end like this.