Fix checkServerAvailability to do not prevent watai closing
Remove parentheses to respect code style guide
Add comment