Added the feature to close the host now, resolves #4.