Modified s:last_status value

- fixed type of s:last_status
- set '-1' when exception occurred
Merge pull request #154 from ichizok/modify-last_status

Modified s:last_status value