Added _halt() call to isample to fix #323