exit child process on error
remove unused parameter
passing instance for left errno for passing to application