TIMOB-14504 Fix argument wrangling in close and give proper arguments in _restart

Test is in Jira. ( https://jira.appcelerator.org/browse/TIMOB-14504#comment-263034 )