Catch OSError exception for subprocess calls.