Add proper status handling on the Close() action for the builtin http
output handler and minimum locking for the channel closing