Add function to be called when binding is done
Fix 'block is not defined' error
Send ack if stream handled data immediately
Add method for stopping the server