This Fixes #1028

Added logic for capturing WS connect fail error and showing custom message.