Fixed bind() call after unexpected shutdown. Closes #2