SMB - free handles when connection fails, replace BOOL with bool