Import Data.ByteString as BS instead of BL
Return closed connection on error to allow for debugging output and/or reconnection