Use backticks for regular expressions.
Send connection errors errors back from whence they came.